package com.wjk.cms.dao;


import com.wjk.cms.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Long>, JpaSpecificationExecutor<User> {

    User getById(Integer id);




    User getByUnionid(String unionid);

    User getByPhone(String phone);


    User getByWxXcxOpenid(String openid);

    User getByTypeAndWxXcxOpenid(String type, String openid);
}
